home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 38 / Amiga Format CD38 (1999-03-15)(Future Publishing)(GB)(Track 1 of 3)[!][issue 1999-04].iso / -in_the_mag- / reader_requests / dice_v3.15 / include / sys / wait.h < prev   
C/C++ Source or Header  |  1999-01-26  |  885b  |  47 lines

  1.  
  2. /*
  3.  * $VER: sys/wait.h 1.0 (17.4.93)
  4.  *
  5.  * (c)Copyright 1992 Obvious Implementations Corp, All Rights Reserved
  6.  */
  7.  
  8. #ifndef SYS_WAIT_H
  9. #define SYS_WAIT_H
  10.  
  11. #ifndef SYS_RESOURCE_H
  12. #include <sys/resource.h>
  13. #endif
  14.  
  15. union wait {
  16.     struct {
  17.     char wu_termsig;
  18.     char wu_stopval;
  19.     char wu_flags;
  20.     char wu_status;
  21.     long wu_retcode;
  22.     char wu_stopsig;
  23.     char wu_reserved;
  24.     } u;
  25. };
  26.  
  27. #define WF_EXITED   0x0001    /*  DICE private    */
  28.  
  29. #define w_termsig u.wu_termsig
  30. #define w_stopval u.wu_stopval
  31. #define w_retcode u.wu_retcode
  32. #define w_status  u.wu_status
  33. #define w_stopsig u.wu_stopsig
  34. #define w_coredump u.wu_termsig     /*    0   */
  35.  
  36. #define WNOHANG     0x0001
  37. #define WUNTRACED   0x0002
  38.  
  39. #define WIFSTOPPED(reason)  0
  40. #define WIFEXITED(reason)   ((reason).u.wu_flags & WF_EXITED)
  41. #define WIFSIGNALED(reason) 0
  42.  
  43. int wait(union wait *);
  44. int wait3(union wait *, int, struct rusage *);
  45.  
  46. #endif
  47.